﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace T_vehicle.Infrastructure.Migrations
{
    public partial class 维修111 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "LicenNumber",
                table: "RepairRecords",
                newName: "LicenNumbers");

            migrationBuilder.AddColumn<int>(
                name: "CreateById",
                table: "TiresUsed",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "CreateById",
                table: "RepairRecords",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "CreateById",
                table: "Maintenance",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "CreateById",
                table: "Illegal",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "CreateById",
                table: "Expenses",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "CreateById",
                table: "Accident",
                type: "int",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreateById",
                table: "TiresUsed");

            migrationBuilder.DropColumn(
                name: "CreateById",
                table: "RepairRecords");

            migrationBuilder.DropColumn(
                name: "CreateById",
                table: "Maintenance");

            migrationBuilder.DropColumn(
                name: "CreateById",
                table: "Illegal");

            migrationBuilder.DropColumn(
                name: "CreateById",
                table: "Expenses");

            migrationBuilder.DropColumn(
                name: "CreateById",
                table: "Accident");

            migrationBuilder.RenameColumn(
                name: "LicenNumbers",
                table: "RepairRecords",
                newName: "LicenNumber");
        }
    }
}
